package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunhe.policyfulfillment.policyful.domain.Annex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: AppealVO
 * @Description:
 * @author: GongDaCheng
 * @Date: 16:20 2021/8/24
 */
@Data
@ApiModel("诉求展示信息")
public class AppealVO implements Serializable {

    private static final long serialVersionUID = -6689217457647054700L;

    /**
     * 诉求编码
     */
    @ApiModelProperty("诉求编码")
    private String appealCode;

    /**
     * 诉求人姓名
     */
    @ApiModelProperty("诉求人姓名")
    private String appealPersonName;

    /**
     * 诉求人联系方式
     */
    @ApiModelProperty("诉求人联系方式")
    private String appealPersonContact;

    /**
     * 诉求类型
     */
    @ApiModelProperty("诉求类型")
    private String appealType;

    /**
     * 诉求类别
     */
    @ApiModelProperty("诉求类别")
    private String appealCategory;

    /**
     * 诉求标题
     */
    @ApiModelProperty("诉求标题")
    private String appealTitle;

    /**
     * 诉求内容
     */
    @ApiModelProperty("诉求内容")
    private String appealContent;

    /**
     * 附件
     */
    @ApiModelProperty("附件")
    private List<Annex> annexList;

    /**
     * 提交时间
     */
    @ApiModelProperty("提交时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitTime;
}
